<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="template.xhtml">
	<ui:define name="content">
	<h:form>
	<p:growl id="growl" showDetail="false" sticky="false" life="3000" /> 
	<p:panel header="Settings">  
		<p:dataTable  var="setting" value="#{settings.settingsList}">
			<p:column headerText="Setting name" style="width:25%">
				<h:outputText value="#{setting.name}"></h:outputText>
			</p:column>
			<p:column headerText="Setting value" style="width:25%">
				<p:inputText id="numberSetting" value="#{setting.value}" required="true" size="30" />
			</p:column>
			<p:column headerText="Setting description" style="width:50%">
				<h:outputText>Description not supported</h:outputText>	
			</p:column>
		</p:dataTable>
		<br />
		<p:commandButton value="Save" actionListener="#{settings.submit}" ajax="false" update="growl"/>
	</p:panel>  
	</h:form>
	</ui:define>
</ui:composition>
</html>